#include "CRL_Main.h"

#include "CRL_ContextFactory.h"
#include "CRL_AtomicFactory.h"

CB_SUBNAMESPACE_START(RenderLib)

CMain::CMain()
{
}

// ---------------------------------------------------------------------------------------------------------------------

CMain::~CMain()
{
}

// ---------------------------------------------------------------------------------------------------------------------

void CMain::Startup(IPlatformHandle& _rHandle)
{
	CContextFactory::CreateInstance(_rHandle);
	CAtomicFactory::CreateInstance(_rHandle);
	
	m_pFileSystem = _rHandle.m_pFileSystem;
}

// ---------------------------------------------------------------------------------------------------------------------

void CMain::Shutdown()
{
	CContextFactory::Release();
	CAtomicFactory::Release();
}

CB_SUBNAMESPACE_END
